# -*- coding: utf-8 -*-

import os, base64
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

def getThunderUrl(url):
    return "thunder://".encode("utf-8") + base64.b64encode(("AA" + url + "ZZ").encode("utf-8")).decode("utf-8")

url = "ftp://ygdy8:ygdy8@yg45.dydytt.net:4013/[阳光电影www.ygdy8.com].悟空传.BD.720p.国粤双语中字.mkv"

os.chdir("E:\\free\\ThunderSpeedPortable\\App\\Thunder\\")
thunderUrl = getThunderUrl(url)
os.system("Thunder.exe -StartType:DesktopIcon \"%s\"" % url)
